# ASP.NET AutoCompleteType Property

Complete TextBox Control Reference

## Definition and Usage

The AutoCompleteType property is used to set or return the AutoComplete category of a TextBox control.

The AutoComplete feature creates a list of values entered in a text box. When using the text box again, a list of values entered is displayed. The user can then select a value instead of retyping a previously entered value

## Syntax

<asp:TextBox AutoCompleteType="cat" runat="server"/>

Attribute | Description
--- | ---

cat

Specifies the AutoComplete category.

Possible values:

- BusinessCity - City in the business category
- BusinessCountryRegion - Country/region in the business category
- BusinessFax - Fax number in the business category
- BusinessPhone - Phone number in the business category
- BusinessState - State in the business category
- BusinessStreetAddress - Street address in the business category
- BusinessUrl - Web site URL in the business category
- BusinessZipCode - ZIP code in the business category
- Cellular - Phone number in the mobile-phone category
- Company - Business name in the business category
- Department - Department in the business category
- Disabled - AutoComplete feature is disabled
- DisplayName - Name to display in the user category
- Email - E-mail in the user category
- FirstName - First name in the user category
- Gender - Gender in the user category
- HomeCity - Home city in the user category
- HomeCountryRegion - Home country/region in the user category
- HomeFax - Fax number in the user category
- Homepage - Web site URL in the user category
- HomePhone - Phone number in the user category
- HomeState - Home state in the user category
- HomeStreetAddress - Home street in the user category
- HomeZipCode - ZIP code in the user category
- JobTitle - Job title in the user category
- LastName - Last name in the user category
- MiddleName - Middle name in the user category
- None - No category specified
- Notes - Extra information in the form
- Office - Office location in the business category
- Pager - Phone number in the pager category
- Search - Keywords in the search category

## Example

The following example sets the AutoCompleteType mode to "FirstName":

<form runat="server">
<asp:TextBox id="tb1" runat="server" AutoCompleteType="FirstName" />
</form>
Show example »

Complete TextBox Control Reference

### WEB HOSTING

UK Reseller Hosting

### WEB BUILDING

FREE Website BUILDER Free HTML5 Templates

### W3SCHOOLS EXAMS

HTML, CSS, JavaScript, PHP, jQuery, XML, and ASP Certifications

### SHARE THIS PAGE

### Color Picker

### HTML/CSS

HTML Tutorial HTML5 Tutorial CSS Tutorial CSS3 Tutorial Bootstrap Tutorial

### JavaScript

JavaScript Tutorial jQuery Tutorial jQuery Mobile Tutorial AngularJS Tutorial AJAX Tutorial JSON Tutorial

### Graphics

Canvas Tutorial SVG Tutorial Google Maps Tutorial

### Server Side

SQL Tutorial PHP Tutorial ASP Tutorial ASP.NET Tutorial VBScript Tutorial AppML Tutorial

### Web

Web Building Web Statistics Web Certification

### XML

XML Tutorial DTD Tutorial Schema Tutorial XML DOM Tutorial XPath Tutorial XSLT Tutorial XQuery Tutorial XSL-FO Tutorial RSS Tutorial WSDL Tutorial

### HTML/CSS

HTML Tag Reference HTML Event Reference HTML Color Reference CSS 1,2,3 Reference Bootstrap Reference

### JavaScript

JavaScript Reference HTML DOM Reference jQuery Reference jQuery Mobile Reference Google Maps Reference

### Server Side

PHP Reference SQL Reference ASP Reference VBScript Reference Razor Reference ASP.NET Reference

### XML

XML DOM Reference XSLT Reference XSL-FO Reference XPath Reference XQuery Reference Schema Reference RSS Reference SVG Reference

### HTML Charsets

HTML Character Sets HTML ASCII HTML ANSI HTML Windows-1252 HTML ISO-8859-1 HTML Symbols HTML UTF-8

### HTML/CSS

HTML Examples CSS Examples

### Browser Scripting

JavaScript Examples HTML DOM Examples jQuery Examples jQuery Mobile Examples AngularJS Examples AJAX Examples

### Server Scripting

PHP Examples ASP Examples VBScript Examples Razor Examples .NET Examples

### XML Languages

XML Examples DTD Examples XML DOM Examples XSL Examples XSLT Examples XPath Examples XQuery Examples Schema Examples RSS Examples SVG Examples